import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JInternalFrame;


public class MyInternalFrame extends JInternalFrame{
	static int openFrameCount = 0;
	static final int xOffset = 30, yOffset = 30;


	public MyInternalFrame() {
		super("Document #" + (++openFrameCount),
				true, //resizable
				true, //closable
				true, //maximizable
				true);//iconifiable
		//...Create the GUI and put it in the window...
		//...Then set the window size or call pack...
		//Set the window's location.
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setPreferredSize(new Dimension(800 ,600));
        setSize(1024, 600);
        setResizable(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Audio Immerse");
        setBackground(Color.BLUE);
		setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
	}
}